/* ______________________________________________________________________
   cparsermain.c
   $Id: cparsermain.c,v 1.2 2003/07/02 21:59:38 jriehl Exp $
   ______________________________________________________________________ */

/* ______________________________________________________________________
   Include files
   ______________________________________________________________________ */

#include "cparserutils.h"

/* ______________________________________________________________________
   External definitions
   ______________________________________________________________________ */

extern int cparserdebug;
extern int cparserparse ();

/* ______________________________________________________________________
   Main routine
   ______________________________________________________________________ */

int main (int argc, char ** argv) {
  int i;
  for (i = 1; i < argc; i++) {
    if (0 == strcmp(argv[i], "-d")) {
      cparserdebug = 1;
    }
  }
  cparserparse();
  CParserEmitTree(CParserGetRoot(), 0);
  return 0;
}

/* ______________________________________________________________________
   End of cparsermain.c
   ______________________________________________________________________ */
